Skip to content

Fix focus mode text readability in dark mode#55

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-dark-mode-focus-compatibility
Draft

Fix focus mode text readability in dark mode#55
Copilot wants to merge 2 commits intomainfrom
copilot/fix-dark-mode-focus-compatibility

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

Focus mode dims unfocused paragraphs to 50% opacity in dark mode, rendering light text on dark backgrounds unreadable.

Changes

  • Increased dark mode dimmed text opacity from 0.5 to 0.65 in EditorView.swift:666
  • Light mode remains at 0.3 opacity (dark text on light backgrounds maintains readability at lower opacity)
// Before: unfocused text at 50% opacity in dark mode
let dimmedAlpha: CGFloat = isDarkMode ? 0.5 : 0.3

// After: unfocused text at 65% opacity in dark mode
let dimmedAlpha: CGFloat = isDarkMode ? 0.65 : 0.3

The asymmetry accounts for perceptual differences: light-on-dark requires higher opacity than dark-on-light for equivalent perceived visibility.

Original prompt

This section details on the original issue you should resolve

<issue_title>Regression: dark mode not compatible with focus mode</issue_title>
<issue_description>Using focus mode while in dark mode renders unfocused text unreadable. The unfocused text should be a little lighter.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…pacity

Co-authored-by: kristinaquinones <5562083+kristinaquinones@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix dark mode compatibility with focus mode Fix focus mode text readability in dark mode Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: dark mode not compatible with focus mode

2 participants